package itheima.zuoye.Test6;

import java.time.LocalDate;
import java.time.Period;

public class test {
    public static void main(String[] args) {
        LocalDate cs = LocalDate.of(2004,3,6);
        LocalDate now = LocalDate.now();
        Period period = Period.between(cs, now);
        System.out.println("您已经活了:"+period.getYears()+"年"+period.getMonths()+"月"+period.getDays()+"天了！ ");

    }
}
